package com.extend_.ExtendsExercise;

/**
 * @Author 小闽
 * @Date 2024/8/9 21:44
 * @PackageName: com.extend_.ExtendsExercise
 * @ClassName: C01
 * @Description: 继承练习
 * @Version 1.0
 */
public class C01 extends B01 {
    public C01(){
        this("hello");
        System.out.println("我是c类的无参构造");
    }
    public C01(String name){
        super("haha");
        System.out.println("我是c类的有参构造");
    }
}
